﻿using HookupAppForm.Dto;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace HookupAppForm.MyUserControl
{
    public partial class UserControlTool : UserControl
    {
        private HKP_ToolDto dto { get; set; }
        public UserControlTool(HKP_ToolDto _dto)
        {
            InitializeComponent();
            dto = _dto;
            Tool.Text = _dto.ToolId + " " + _dto.ToolName;

            StringBuilder tips = new StringBuilder();
            tips.AppendLine("机台名称：" + dto.ToolName);
            tips.AppendLine("机台编号：" + dto.ToolId);
            tips.AppendLine("机台坐标：X=" + dto.X.ToString() + "，Y=" + dto.Y.ToString());
            this.toolTipM.SetToolTip(this.Tool, tips.ToString());
        }

    }
}
